package com.penghaisoft.microwms.base.web.auth.service;


import com.penghaisoft.microwms.common.base.model.BaseResRole;
import com.penghaisoft.microwms.common.base.model.BaseResRoleFactory;
import com.penghaisoft.microwms.common.dto.Resp;
import com.penghaisoft.microwms.common.page.Pager;

import java.util.List;

/**
 * @Title: IRoleService.java
 * @Description: 资源角色管理服务
 * @author qh
 * @date 2017/3/1 16:24
 * @version V0.5
 */
public interface IRoleService {
	
	BaseResRole queryById(String id);

	/*BaseResRole queryOne(BaseResRole role);*/

    Resp add(BaseResRole role);

    Resp update(BaseResRole role);

    Resp deleteRoles(List<String> ids);

    Pager<BaseResRole> queryList(int page, int rows, BaseResRole condition);
    
    List<BaseResRole> queryAllRoleList(BaseResRole condition);

	List<BaseResRoleFactory> queryAllFactory(BaseResRoleFactory condition);

	Resp RoleResFactory(List<BaseResRoleFactory> list);
}
